package cn.smilefox.dao;

import cn.smilefox.domain.Course;

import java.util.List;

public interface CourseDao {
    public List<Course> findalltest();

    Long save(Course course);

    Long findTeacherByName(String teacher);

    void saveTeacherTestRel(Long t_id, Long c_id);

    void delTeacherTestRel(Long courseid);

    void deltest(Long courseid);

    List<Course> findtest(Course course);

    List<Course> findalltheory();

    Long savetheory(Course course);

    void saveTeacherTheoryRel(Long t_id, Long c_id);

    void delTeacherTheoryRel(Long courseid);

    void deltheory(Long courseid);

    List<Course> findtheory(Course course1);

    List<Course> findTestById(Long id);

    List<Course> findTheoryById(Long id);
}
